package com.hnust.fiveonesix.POJO;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class Product {
    private int id; // 商品的编号
    private String name; //商品名字
    private double price ; //商品价格
    private String img="/asserts/img/products/";//商品图片位置

    public Product(int id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;

    }
    public void setImg(String add) {
        this.img = this.img+add;
    }
}